(function(clazz,istree){
	var store ;
	//var db   = Get("entity/clazz/"+clazz).obj;
	var data  = _("pocess.fun.getData")(clazz);
	if(istree==1){
		data  = _("pocess.fun.gridtotree")(data);
	}
	/*for(d in db){
		var info = db[d].info;
		var obj  = {};
		//obj.id = db[d].id;
		for(i in info){
			obj[info[i].key] = info[i].value;
		}
		data.push(obj);
	}
	log(data);*/
	store = {
		//pageSize:size,
		data	:data,
    	proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                root: '.',
                /* totalProperty: 'size'*/
            }
        }
	};
	return store;
})